<?php
$this->widget('bootstrap.widgets.TbBreadcrumbs',array(
	'links'=>array(
	UserModule::t('Users')=>array('admin'),
	$model->username,
	),
));

$this->menu=array(
    array('label'=>'User Module'),
    array('label'=>UserModule::t('Create User'), 'icon'=>'star', 'url'=>array('create')),
    array('label'=>UserModule::t('View User'), 'icon'=>'eye-open', 'url'=>array('view','id'=>$model->id)),
    array('label'=>UserModule::t('Update User'), 'icon'=>'pencil', 'url'=>array('update','id'=>$model->id)),
    array('label'=>UserModule::t('Delete User'), 'icon'=>'trash', 'url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>UserModule::t('Are you sure to delete this item?'))),
    array('label'=>UserModule::t('Manage Users'), 'icon'=>'cog', 'url'=>array('admin')),
    array('label'=>UserModule::t('Manage Profile Field'), 'icon'=>'edit', 'url'=>array('profileField/admin')),
    array('label'=>UserModule::t('List User'), 'icon'=>'th-list', 'url'=>array('/user')),
);
?>
<div class="row">
	<div class="span9">
		<div style="padding: 10px;">
<h2><?php echo UserModule::t('View User').' "'.$model->username.'"'; ?></h2>
<?php
 
	$attributes = array(
		'id',
		'username',
		'email',
		'activkey',
		'create_at',
		'lastvisit',
		array(
			'name' => 'superuser',
			'value' => User::itemAlias("AdminStatus",$model->superuser),
		),
		array(
			'name' => 'status',
			'value' => User::itemAlias("UserStatus",$model->status),
		)
	);
	
	$this->widget('bootstrap.widgets.TbDetailView', array(
		'data'=>$model,
		'attributes'=>$attributes,
	));
	

?>
	</div>
	</div>
	<div class="span3">
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Administration',
		));
		$this->widget('bootstrap.widgets.TbMenu',array(
			'type'=>'list',
			'items'=>$this->menu,
		));
		$this->endWidget();
	?>
	</div>
</div>